
include(FindPkgConfig)

pkg_check_modules(PKGS gbm libdrm libevdev glesv2 egl)

include_directories(${PKGS_INCLUDE_DIRS})
link_directories(${PKGS_LIBRARY_DIRS})

add_executable(kmsdemo_ball  "glsl_demo.cpp" "glsl_demo.h" "glsl_demo2.cpp" "glsl_demo2.h" "kms-demo1.cpp")

target_link_libraries(kmsdemo_ball ${PKGS_LDFLAGS})
